package com.xiangban.yanglaodajie_platform.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/2/4 14:21
 */
@Data
public class LoginUserDto {
    public static final int type_phone = 2; //手机验证码登录
    public static final int type_account = 1; //账号登录

    public static final String verification_type_login="login_"; //1
    public static final String verification_type_register="register_"; //2
    public static final String verification_type_rest_password="rest_password_"; //3
    /*商家验证码*/
    public static final String verification_type_login_shop="login_shop_"; //4
    public static final String verification_type_register_shop="register_shop_"; //5
    public static final String verification_type_rest_password_shop="rest_password_shop_"; //6



    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "验证码")
    private String verification;

    @ApiModelProperty(value = "验证码类型(1登录)")
    private String verificationType;

    @ApiModelProperty(value = "登录类型 1 默认（账号密码）2（验证码） ")
    private int type;
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
